/*
 * ParserException.h
 *
 *  Created on: 2010-5-1
 *      Author: Guobc
 */

#ifndef PARSEREXCEPTION_H_
#define PARSEREXCEPTION_H_

#include <exception>
#include <iostream>
#include <string>
using namespace std;

namespace HA {

class ParserException: public exception {
public:
	ParserException(string fuction, int line, string className);

	~ParserException() throw ();

	/** Returns a C-style character string describing the general cause
	 *  of the current error.
	 */
	const char* what() const throw ();

private:
	string errMsg;

};
}

#endif /* PARSEREXCEPTION_H_ */
